package com.lzx.adx.report.enums;

import lombok.Getter;

public enum TaoBaoCovertToutiaoEnums {
    cl("5","REACTIVATION","app内访问"),
    pay("11","in_app_order","下单"),


    ;

    @Getter
    private String tbCode;

    @Getter
    private String ttcode;

    @Getter
    private String desc;

    TaoBaoCovertToutiaoEnums(String tbCode, String ttcode, String desc) {
        this.tbCode = tbCode;
        this.ttcode = ttcode;
        this.desc = desc;
    }

    public static String getTtCode(String tbCode){
        for (TaoBaoCovertToutiaoEnums value : TaoBaoCovertToutiaoEnums.values()) {
            if(value.getTbCode().equals(tbCode)){
                return value.getTtcode();
            }
        }
        return null;
    }
}
